﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003E7 RID: 999
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DoGachaInRollShopScRsp : IMessage<DoGachaInRollShopScRsp>, IMessage, IEquatable<DoGachaInRollShopScRsp>, IDeepCloneable<DoGachaInRollShopScRsp>, IBufferMessage
	{
		// Token: 0x17000CCD RID: 3277
		// (get) Token: 0x06002CAC RID: 11436 RVA: 0x0007B3DF File Offset: 0x000795DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DoGachaInRollShopScRsp> Parser
		{
			get
			{
				return DoGachaInRollShopScRsp._parser;
			}
		}

		// Token: 0x17000CCE RID: 3278
		// (get) Token: 0x06002CAD RID: 11437 RVA: 0x0007B3E6 File Offset: 0x000795E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DoGachaInRollShopScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CCF RID: 3279
		// (get) Token: 0x06002CAE RID: 11438 RVA: 0x0007B3F8 File Offset: 0x000795F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DoGachaInRollShopScRsp.Descriptor;
			}
		}

		// Token: 0x06002CAF RID: 11439 RVA: 0x0007B3FF File Offset: 0x000795FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaInRollShopScRsp()
		{
		}

		// Token: 0x06002CB0 RID: 11440 RVA: 0x0007B408 File Offset: 0x00079608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaInRollShopScRsp(DoGachaInRollShopScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.rewardDisplayType_ = other.rewardDisplayType_;
			this.rollShopId_ = other.rollShopId_;
			this.gMMLAIMHMMB_ = other.gMMLAIMHMMB_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002CB1 RID: 11441 RVA: 0x0007B478 File Offset: 0x00079678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaInRollShopScRsp Clone()
		{
			return new DoGachaInRollShopScRsp(this);
		}

		// Token: 0x17000CD0 RID: 3280
		// (get) Token: 0x06002CB2 RID: 11442 RVA: 0x0007B480 File Offset: 0x00079680
		// (set) Token: 0x06002CB3 RID: 11443 RVA: 0x0007B488 File Offset: 0x00079688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17000CD1 RID: 3281
		// (get) Token: 0x06002CB4 RID: 11444 RVA: 0x0007B491 File Offset: 0x00079691
		// (set) Token: 0x06002CB5 RID: 11445 RVA: 0x0007B499 File Offset: 0x00079699
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000CD2 RID: 3282
		// (get) Token: 0x06002CB6 RID: 11446 RVA: 0x0007B4A2 File Offset: 0x000796A2
		// (set) Token: 0x06002CB7 RID: 11447 RVA: 0x0007B4AA File Offset: 0x000796AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RewardDisplayType
		{
			get
			{
				return this.rewardDisplayType_;
			}
			set
			{
				this.rewardDisplayType_ = value;
			}
		}

		// Token: 0x17000CD3 RID: 3283
		// (get) Token: 0x06002CB8 RID: 11448 RVA: 0x0007B4B3 File Offset: 0x000796B3
		// (set) Token: 0x06002CB9 RID: 11449 RVA: 0x0007B4BB File Offset: 0x000796BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RollShopId
		{
			get
			{
				return this.rollShopId_;
			}
			set
			{
				this.rollShopId_ = value;
			}
		}

		// Token: 0x17000CD4 RID: 3284
		// (get) Token: 0x06002CBA RID: 11450 RVA: 0x0007B4C4 File Offset: 0x000796C4
		// (set) Token: 0x06002CBB RID: 11451 RVA: 0x0007B4CC File Offset: 0x000796CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GMMLAIMHMMB
		{
			get
			{
				return this.gMMLAIMHMMB_;
			}
			set
			{
				this.gMMLAIMHMMB_ = value;
			}
		}

		// Token: 0x06002CBC RID: 11452 RVA: 0x0007B4D5 File Offset: 0x000796D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DoGachaInRollShopScRsp);
		}

		// Token: 0x06002CBD RID: 11453 RVA: 0x0007B4E4 File Offset: 0x000796E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DoGachaInRollShopScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && this.RewardDisplayType == other.RewardDisplayType && this.RollShopId == other.RollShopId && this.GMMLAIMHMMB == other.GMMLAIMHMMB && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002CBE RID: 11454 RVA: 0x0007B564 File Offset: 0x00079764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.RewardDisplayType != 0U)
			{
				num ^= this.RewardDisplayType.GetHashCode();
			}
			if (this.RollShopId != 0U)
			{
				num ^= this.RollShopId.GetHashCode();
			}
			if (this.GMMLAIMHMMB != 0U)
			{
				num ^= this.GMMLAIMHMMB.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002CBF RID: 11455 RVA: 0x0007B604 File Offset: 0x00079804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002CC0 RID: 11456 RVA: 0x0007B60C File Offset: 0x0007980C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002CC1 RID: 11457 RVA: 0x0007B618 File Offset: 0x00079818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RollShopId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.RollShopId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.RewardDisplayType != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.RewardDisplayType);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Reward);
			}
			if (this.GMMLAIMHMMB != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GMMLAIMHMMB);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002CC2 RID: 11458 RVA: 0x0007B6C4 File Offset: 0x000798C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.RewardDisplayType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RewardDisplayType);
			}
			if (this.RollShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RollShopId);
			}
			if (this.GMMLAIMHMMB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GMMLAIMHMMB);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002CC3 RID: 11459 RVA: 0x0007B764 File Offset: 0x00079964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DoGachaInRollShopScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.RewardDisplayType != 0U)
			{
				this.RewardDisplayType = other.RewardDisplayType;
			}
			if (other.RollShopId != 0U)
			{
				this.RollShopId = other.RollShopId;
			}
			if (other.GMMLAIMHMMB != 0U)
			{
				this.GMMLAIMHMMB = other.GMMLAIMHMMB;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002CC4 RID: 11460 RVA: 0x0007B808 File Offset: 0x00079A08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002CC5 RID: 11461 RVA: 0x0007B814 File Offset: 0x00079A14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 8U)
					{
						this.RollShopId = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.RewardDisplayType = input.ReadUInt32();
						continue;
					}
					if (num == 106U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 120U)
					{
						this.GMMLAIMHMMB = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040011B1 RID: 4529
		private static readonly MessageParser<DoGachaInRollShopScRsp> _parser = new MessageParser<DoGachaInRollShopScRsp>(() => new DoGachaInRollShopScRsp());

		// Token: 0x040011B2 RID: 4530
		private UnknownFieldSet _unknownFields;

		// Token: 0x040011B3 RID: 4531
		public const int RewardFieldNumber = 13;

		// Token: 0x040011B4 RID: 4532
		private ItemList reward_;

		// Token: 0x040011B5 RID: 4533
		public const int RetcodeFieldNumber = 10;

		// Token: 0x040011B6 RID: 4534
		private uint retcode_;

		// Token: 0x040011B7 RID: 4535
		public const int RewardDisplayTypeFieldNumber = 12;

		// Token: 0x040011B8 RID: 4536
		private uint rewardDisplayType_;

		// Token: 0x040011B9 RID: 4537
		public const int RollShopIdFieldNumber = 1;

		// Token: 0x040011BA RID: 4538
		private uint rollShopId_;

		// Token: 0x040011BB RID: 4539
		public const int GMMLAIMHMMBFieldNumber = 15;

		// Token: 0x040011BC RID: 4540
		private uint gMMLAIMHMMB_;
	}
}
